﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataMigration
{
    public class Person
    {
        public int PersonID { get; set; }
        public int AddressID { get; set; }
        public string Title { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public DateTime EntryDate { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime ModifyDate { get; set; }
    }

    public class Address
    {
        public int AddressID { get; set; }
        public string AddressLine1 { get; set; }
        public string AddressLine2 { get; set; }
        public string AddressLine3 { get; set; }
        public string AddressLine4 { get; set; }
        public string PostalCode { get; set; }
        public string Country { get; set; }
        public string PhoneNumber { get; set; }
        public string Email { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime ModifyDate { get; set; }
    }

    internal class PersonDetails
    {
        //public int PersonID { get; set; }
        //public int AddressID { get; set; }
        //public string Title { get; set; }
        //public string FirstName { get; set; }
        //public string LastName { get; set; }
        //public string AddressLine1 { get; set; }
        //public string AddressLine2 { get; set; }
        //public string AddressLine3 { get; set; }
        //public string AddressLine4 { get; set; }
        //public string PostalCode { get; set; }
        //public string Country { get; set; }
        //public string PhoneNumber { get; set; }
        //public string Email { get; set; }
        //public DateTime EntryDate { get; set; }
        //public DateTime PersonCreateDate { get; set; }
        //public DateTime PersonModifyDate { get; set; }
        //public DateTime AddressCreateDate { get; set; }
        //public DateTime AddressModifyDate { get; set; }

        public Person Person { get; set; }
        public Address Address { get; set; }

        public PersonDetails()
        { }

        public PersonDetails(Person person, Address address) : this()
        {
            Person = person;
            Address = address;
        }
    }
}
